package com.xbongbong.pro.domain.entity;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 审批迁移到工作流
 * @author 吴峰
 * @date 2021/11/03 10:53
 */
@Getter
@Setter
@ToString
public class PaasProcessMigrationEntity {

    private Long id;

    private String corpid;

    private Long formId;

    private Integer saasMark;

    private Integer businessType;
    /**
     * 流程模板id
     */
    private Long templateId;

    private Integer enable;

    /**
     * 工作流模板id
     */
    private Long workflowId;

    /**
     * 新老流转模版节点对应
     */
    private JSONObject nodeMap;

    private String creatorId;
    /**
     * 创建时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * @see com.xbongbong.paas.enums.DelEnum
     * 删除标记
     */
    private Integer del;

    public PaasProcessMigrationEntity(String corpid, Long formId, Integer saasMark, Integer businessType, Long templateId, Integer enable, Long workflowId, JSONObject nodeMap,  String creatorId, Long addTime, Long updateTime, Integer del) {
        this.corpid = corpid;
        this.formId = formId;
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.templateId = templateId;
        this.enable = enable;
        this.workflowId = workflowId;
        this.nodeMap = nodeMap;
        this.creatorId = creatorId;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.del = del;
    }

    public PaasProcessMigrationEntity() {
    }
}
